Ext.ns('TaxonTagger');
Ext.onReady(function() {
	Ext.QuickTips.init();

	Ext.fly(document.body).on('contextmenu', function(e, target) {
		e.preventDefault();
	});
 	
	this.htw = new TaxonTagger.NameGrid({renderTo : document.body});
    /*
var listArray = [];
    var lastString = '';
    list_grid.store.data.each(function(i) {
        if (i.data.full != lastString) {
            listArray.push( i.data.full );
            lastString = i.data.full;
        }
    });
    htw.loadRows(listArray);
*/
	var newList = [
		'Gilchristella aestuaria'
	,	'Glossogobius callidus'
	,	'L. alata'
	,	'Liza alata'
	,	'M. capensis'
	,	'M. cephalus'
	,	'Mugil cephalus'
	,	'Myxus capensis'
	,	'O. mossambicus'
	,	'R. holubi'
	,	'Rhabdosargus holubi'
	,	'T. jarbua'
	,	'Terapon jarbua'
	,	'V. buchanani'
	,	'V. cunnesius'
	,	'V. robustus'
	,	'Valamugil'
	,	'Valamugil cunnesius'
	,	'Valamugil robustus'
		]
		
	var listArray = [];
    var lastString = '';
//	console.log("this in nub app", this.htw.store.data)	
//	this.htw.store.data = newList
   
//	list_grid.store.loadData(newList);
	this.htw.loadRows(newList);
    this.htw.show();


});